package com.happy.cat.framework.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;

/**
 * @Author: verne
 * @Data: 2020/7/27 15:52
 */
@Data
@Configuration
public class AliOssConfig {

    @Value("${cat-upload.file-path}")
    private Resource filePath;

    @Value("${cat-upload.static-url}")
    private String staticUrl;

    @Value("${cat-upload.upload-dir}")
    private String uploadDir;

    @Value("${cat-upload.oss-flag}")
    private boolean ossFlag;

    @Value("${cat-upload.aliyun.oss.accessKeyId}")
    private String accessKeyId;

    @Value("${cat-upload.aliyun.oss.accessKeySecret}")
    private String accessKeySecret;

    @Value("${cat-upload.aliyun.oss.endpoint}")
    private String endpoint;

    @Value("${cat-upload.aliyun.oss.buckname}")
    private String buckname;

    @Value("${cat-upload.aliyun.oss.dir}")
    private String ossDir;

    @Value("${cat-upload.aliyun.cdn.url}")
    private String cdnUrl;

    @Value("${cat-upload.aliyun.oss.policy.expire}")
    private int ossExpire;

    @Value("${cat-upload.aliyun.oss.maxSize}")
    private Long ossMaxSize;

    @Value("${cat-upload.aliyun.oss.callback}")
    private String ossCallback;

    @Value("${cat-upload.aliyun.oss.http}")
    private String http;

}
